<#include "header.htm"/>

<#import "../macros/presentation.ftl" as presentation/>
<script type="text/javascript">
<!--
<#include "js/utils.js"/>

-->
</script>


		

<h2>${I18n.getMessage("UserProfile.view")} ${u.username}</h2>


<div class="panel bg1 <#if u.isOnline()>online</#if>">
	<div class="inner"><span class="corners-top"><span></span></span>

	

	<dl class="left-box details" style="width: 80%;">
		<dt>${I18n.getMessage("UserProfile.username")}:</dt>
		<dd>
			<span style="color: #AA0000; font-weight: bold;">${u.username}</span>
			 
		</dd>
		
		
		
		<#if (u.avatar?exists && u.avatar?length > 0)>
		<dt>${I18n.getMessage("UserProfile.avatar")}:</dt>
				<dd>
				<#if u.isExternalAvatar() || u.avatar.startsWith("http://")>
					<#if avatarAllowExternalUrl>
						<img src="${u.avatar}" border="0">
					</#if>
				<#else>
					<img src="${contextPath}/images/avatar/${u.avatar}" border="0" /><br />
				</#if>
				</dd>
		</#if>
		
		<dt>${I18n.getMessage("UserProfile.rank")}:</dt> 
		<dd>${rank.getRankTitle(u.rankId, u.totalPosts)}</dd>
		
		<#if karmaEnabled>
		<dt>${I18n.getMessage("Karma.karma")}:</dt>
		<dd><script type="text/javascript">writeStars(${u.karma.karmaPoints}, ${u.id});</script></dd>
		</#if>

		<#if (u.from?exists && u.from?length > 0)>
		<dt>${I18n.getMessage("UserProfile.from")}:</dt>
		<dd>${u.from}</dd>
		</#if>
		
		<#if (u.occupation?exists && u.occupation?length > 0)>
			<dt>${I18n.getMessage("UserProfile.occupation")}:</dt>
			<dd>${u.occupation}</dd>
		</#if>
            
		<#if (u.interests?exists && u.interests?length > 0)>
		    <dt>${I18n.getMessage("UserProfile.interests")}:</dt>
		    <dd>${u.interests}</dd>
		</#if>
            
		<#if (u.biography?exists && u.biography?length > 0)>
			<dt>${I18n.getMessage("UserProfile.biography")}:</dt>
			<dd>${u.biography}</dd>
		</#if>		
		
	</dl>

	<span class="corners-bottom"><span></span></span></div>
</div>

<div class="panel bg2">
	<div class="inner"><span class="corners-top"><span></span></span>
	<div class="column1">

		<h3>${I18n.getMessage("UserProfile.contact")} ${u.username}</h3>

		<dl class="details">
		
		
		

		<#if (u.isViewEmailEnabled() && u.email?exists && u.email?length > 0)>
		    <dt>${I18n.getMessage("UserProfile.emailAddress")}:</dt>
		    <dd>
			    <a href="mailto:${u.email}">${I18n.getMessage("UserProfile.email")} ${u.username}</a>
		    </dd>
		    
		</#if>
		
		
		
		
		
		<#if u.id != 1>
		  <dt>${I18n.getMessage("UserProfile.privateMessage")}:</dt>
		  <dd><a href="${JForumContext.encodeURL("/pm/sendTo/${u.id}")}">${I18n.getMessage("UserProfile.send")}</a></dd>
		</#if>	
		
		<#if (u.webSite?exists && u.webSite?length > 0)>
		  <dt>${I18n.getMessage("UserProfile.webSite")}:</dt>
		  <dd><a href="${u.webSite}" target="_new">${u.webSite}</a></dd>
		</#if>	
		

		<#if (u.msnm?exists && u.msnm?length > 0)>
		   <dt>${I18n.getMessage("UserProfile.msnm")}:</dt> <dd>${u.msnm}</dd>

		</#if>
            
		<#if (u.yim?exists && u.yim?length > 0)>
			<dt>${I18n.getMessage("UserProfile.yim")}:</dt>
			<dd><a href="http://edit.yahoo.com/config/send_webmesg?.target=${u.yim?html}&amp;.src=pg" >${I18n.getMessage("UserProfile.sendYim")}</a></dd>
		</#if>
		

		<#if (u.icq?exists && u.icq?length > 0)>
			<dt>${I18n.getMessage("UserProfile.icq")}:</dt>
			<dd><a href="http://wwp.icq.com/scripts/search.dll?to=${u.icq}">${I18n.getMessage("UserProfile.sendIcq")}</a></a></dd>
		</#if>
		
		</dl>
	</div>

	<div class="column2">
		<h3>${I18n.getMessage("UserProfile.userStatistics")}</h3>
		<dl class="details">
			<dt>${I18n.getMessage("UserProfile.joined")}:</dt> <dd>${u.registrationDate}</dd>
			<#if u.id != 1 && u.lastVisit?exists>
			<dt>${I18n.getMessage("UserProfile.lastVisited")}:</dt> <dd>${u.lastVisit}</dd>
			</#if>
			<dt>${I18n.getMessage("UserProfile.totalPosts")}:</dt>
			    <dd>
			    <#if (nposts > 0)>
					${nposts} | <a href="${JForumContext.encodeURL("/posts/listByUser/${u.id}")}"> ${I18n.getMessage("PostShow.userPosts")} ${u.username?html}</a>
				<#else>
					${I18n.getMessage("PostShow.noUserCreatedPosts")}
				</#if>
				</dd>
			
			
			<dt>${I18n.getMessage("ForumListing.userCreatedTopics")}:</dt>
				<dd>
				<#if (ntopics > 0)>
					${ntopics} | <a href="${JForumContext.encodeURL("/recentTopics/showTopicsByUser/${u.id}")}">${I18n.getMessage("ForumListing.userTopics")?html} ${u.username?html}</a> </b>
				<#else>
					${I18n.getMessage("ForumListing.noUserCreatedTopics")}
				</#if>
				</dd>
			
			<#if bookmarksEnabled>
			   <dt>${I18n.getMessage("Bookmarks.myBag")}:</dt>
					<dd>
					<#if (nbookmarks > 0)>
							${nbookmarks} | <a class="gen" href="${JForumContext.encodeURL("/bookmarks/list/${u.id}")}">${I18n.getMessage("Bookmarks.for")} ${u.username?html}</a> </b>
						<#else>
							${I18n.getMessage("Bookmarks.empty")}
						</#if>
					</dd>
				</#if>
			
		</dl>
	</div>
	<span class="corners-bottom"><span></span></span></div>
</div>


			<#if (u.attachSignatureEnabled && u.signature?exists && u.signature?length > 0)>

<div class="panel bg1">
	<div class="inner"><span class="corners-top"><span></span></span>

		<h3>${I18n.getMessage("UserProfile.signature")}</h3>

		<div class="postbody"><div class="signature" style="border-top:none; margin-top: 0;">${u.signature}</div></div>

	<span class="corners-bottom"><span></span></span></div>
</div>
</#if>





<@presentation.forumsComboTable/>



<#include "bottom.htm"/>
